import request from '@/utils/request'

// 查询团队业绩目标列表
export function listTeamper(query) {
  return request({
    url: '/teamper/teamper/list',
    method: 'get',
    params: query
  })
}

// 查询团队业绩目标详细
export function getTeamper(id) {
  return request({
    url: '/teamper/teamper/' + id,
    method: 'get'
  })
}

// 新增团队业绩目标
export function addTeamper(data) {
  return request({
    url: '/teamper/teamper',
    method: 'post',
    data: data
  })
}

// 修改团队业绩目标
export function updateTeamper(data) {
  return request({
    url: '/teamper/teamper',
    method: 'put',
    data: data
  })
}

// 删除团队业绩目标
export function delTeamper(id) {
  return request({
    url: '/teamper/teamper/' + id,
    method: 'delete'
  })
}
